<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>CXW_CSVManage: D:/MyExample/CPlusPlus/SimpleLearn/24.CSVManTest/CSVManage.h源文件</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">CXW_CSVManage
   &#160;<span id="projectnumber">V1.0</span>
   </div>
   <div id="projectbrief">CXW_CSVManage</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- 制作者 Doxygen 1.8.0 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>首页</span></a></li>
      <li><a href="pages.html"><span>相关页面</span></a></li>
      <li><a href="namespaces.html"><span>命名空间</span></a></li>
      <li><a href="annotated.html"><span>类</span></a></li>
      <li class="current"><a href="files.html"><span>文件</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="搜索" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>文件列表</span></a></li>
      <li><a href="globals.html"><span>文件成员</span></a></li>
    </ul>
  </div>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>全部</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>类</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>命名空间</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>文件</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>函数</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>变量</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>类型定义</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>枚举</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>枚举值</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">D:/MyExample/CPlusPlus/SimpleLearn/24.CSVManTest/CSVManage.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="_c_s_v_manage_8h.html">浏览该文件的文档。</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 ﻿
<a name="l00013"></a>00013 <span class="preprocessor">#ifndef _CXW_CSV_MANAGE_H</span>
<a name="l00014"></a>00014 <span class="preprocessor"></span><span class="preprocessor">#define _CXW_CSV_MANAGE_H</span>
<a name="l00015"></a>00015 <span class="preprocessor"></span>
<a name="l00016"></a>00016 <span class="preprocessor">#include &lt;iostream&gt;</span>
<a name="l00017"></a>00017 <span class="preprocessor">#include &lt;string&gt;</span>
<a name="l00018"></a>00018 <span class="preprocessor">#include &lt;vector&gt;</span>
<a name="l00019"></a>00019 <span class="comment">// #include &lt;list&gt;</span>
<a name="l00020"></a>00020 
<a name="l00021"></a>00021 
<a name="l00023"></a>00023 
<a name="l00026"></a>00026 <span class="keyword">namespace </span>CXW
<a name="l00027"></a>00027 {
<a name="l00028"></a>00028         <span class="keyword">using namespace </span>std;
<a name="l00029"></a>00029 
<a name="l00031"></a>00031 
<a name="l00042"></a><a class="code" href="class_c_x_w_1_1_c_s_v_manage.html">00042</a>         <span class="keyword">class </span><a class="code" href="class_c_x_w_1_1_c_s_v_manage.html" title="CSV文件管理类.">CSVManage</a>
<a name="l00043"></a>00043         {
<a name="l00044"></a>00044         <span class="keyword">public</span>:
<a name="l00045"></a>00045                 <a class="code" href="class_c_x_w_1_1_c_s_v_manage.html" title="CSV文件管理类.">CSVManage</a>(<span class="keywordtype">void</span>);
<a name="l00046"></a>00046                 ~<a class="code" href="class_c_x_w_1_1_c_s_v_manage.html" title="CSV文件管理类.">CSVManage</a>(<span class="keywordtype">void</span>);
<a name="l00047"></a>00047 
<a name="l00048"></a>00048         <span class="keyword">public</span>:
<a name="l00049"></a>00049 
<a name="l00051"></a>00051 
<a name="l00052"></a><a class="code" href="class_c_x_w_1_1_c_s_v_manage.html#ad99b87fbcd661a9f9b8299122656f283">00052</a>                 <span class="keyword">enum</span> <a class="code" href="class_c_x_w_1_1_c_s_v_manage.html#ad99b87fbcd661a9f9b8299122656f283" title="错误码枚举类型">ERROR_CODE</a>
<a name="l00053"></a>00053                 {
<a name="l00054"></a><a class="code" href="class_c_x_w_1_1_c_s_v_manage.html#ad99b87fbcd661a9f9b8299122656f283a00ec6eeda248349f571dcf4e84ec79ef">00054</a>                         SUCCESS                                 = 0             ,       
<a name="l00055"></a>00055 
<a name="l00056"></a><a class="code" href="class_c_x_w_1_1_c_s_v_manage.html#ad99b87fbcd661a9f9b8299122656f283ab167a4805ab5a67b8f4d6755e491d5ae">00056</a>                         FILE_NAME_NULL                  = -1    ,       
<a name="l00057"></a><a class="code" href="class_c_x_w_1_1_c_s_v_manage.html#ad99b87fbcd661a9f9b8299122656f283a4df33f52451c817b16f490dffb2ebe49">00057</a>                         FILE_TOO_LARGE                  = -2    ,       
<a name="l00058"></a><a class="code" href="class_c_x_w_1_1_c_s_v_manage.html#ad99b87fbcd661a9f9b8299122656f283a350f650fc32b0fa17f7d54625a9529db">00058</a>                         FILE_CAN_NOT_FIND               = -3    ,       
<a name="l00059"></a><a class="code" href="class_c_x_w_1_1_c_s_v_manage.html#ad99b87fbcd661a9f9b8299122656f283ae40b68bf1b4d1193cfbae44167cbfafc">00059</a>                         FILE_CAN_NOT_OPEN               = -5    ,       
<a name="l00060"></a>00060 
<a name="l00061"></a><a class="code" href="class_c_x_w_1_1_c_s_v_manage.html#ad99b87fbcd661a9f9b8299122656f283a5f5a0d901028e5f1fef36862c96e5e3b">00061</a>                         NUM_TOO_LARGE                   = -6    ,       
<a name="l00062"></a><a class="code" href="class_c_x_w_1_1_c_s_v_manage.html#ad99b87fbcd661a9f9b8299122656f283a33c45ae017cd7f9f6545f0529a1b5876">00062</a>                         NUM_TOO_LITTLE                  = -7    ,       
<a name="l00063"></a>00063 
<a name="l00064"></a><a class="code" href="class_c_x_w_1_1_c_s_v_manage.html#ad99b87fbcd661a9f9b8299122656f283a2b9aa614d4e136dec3dead0536126065">00064</a>                         ROW_DO_NOT_EXIST                = -8    ,       
<a name="l00065"></a><a class="code" href="class_c_x_w_1_1_c_s_v_manage.html#ad99b87fbcd661a9f9b8299122656f283a80a4b234a06bab67c308201e3ab931c5">00065</a>                         ROW_COL_NUM_ERROR               = -9    ,       
<a name="l00066"></a>00066 
<a name="l00067"></a><a class="code" href="class_c_x_w_1_1_c_s_v_manage.html#ad99b87fbcd661a9f9b8299122656f283a65a05e20ad19c43ad06fb515a3a6d36c">00067</a>                         TITLE_NOT_EXIST                 = -10   ,       
<a name="l00068"></a><a class="code" href="class_c_x_w_1_1_c_s_v_manage.html#ad99b87fbcd661a9f9b8299122656f283a612b4e9647bbcf7f2bebff9e4bb7f2ee">00068</a>                         TITLE_LEN_NOT_MATCH             = -11   ,       
<a name="l00069"></a>00069                 };
<a name="l00070"></a>00070 
<a name="l00072"></a>00072 
<a name="l00073"></a><a class="code" href="class_c_x_w_1_1_c_s_v_manage.html#a8bd8eeeb7e83173a7588479446dee976">00073</a>                 <span class="keyword">enum</span> <a class="code" href="class_c_x_w_1_1_c_s_v_manage.html#a8bd8eeeb7e83173a7588479446dee976" title="排序模式枚举类型">SORT_MODE</a>
<a name="l00074"></a>00074                 {
<a name="l00075"></a><a class="code" href="class_c_x_w_1_1_c_s_v_manage.html#a8bd8eeeb7e83173a7588479446dee976a4c93b4e8af0299e5c99e95978f687c2d">00075</a>                         STRING_A_TO_Z                   = 1             ,       
<a name="l00076"></a><a class="code" href="class_c_x_w_1_1_c_s_v_manage.html#a8bd8eeeb7e83173a7588479446dee976a77e4e65a073540b093aa5e2a90931be6">00076</a>                         STRING_Z_TO_A                   = 2             ,       
<a name="l00077"></a>00077                                                                                                   
<a name="l00078"></a><a class="code" href="class_c_x_w_1_1_c_s_v_manage.html#a8bd8eeeb7e83173a7588479446dee976ad9030ccd819284040418ddb814516655">00078</a>                         STRING_Aa_TO_Zz                 = 3             ,       
<a name="l00079"></a><a class="code" href="class_c_x_w_1_1_c_s_v_manage.html#a8bd8eeeb7e83173a7588479446dee976a4472b83a9490668a63b02d76e7d73cfe">00079</a>                         STRING_Zz_TO_Aa                 = 4             ,       
<a name="l00080"></a>00080 
<a name="l00081"></a><a class="code" href="class_c_x_w_1_1_c_s_v_manage.html#a8bd8eeeb7e83173a7588479446dee976a8db0315ca6c69991a80495f20917799c">00081</a>                         INT_LITTLE_TO_LARGE             = 5             ,       
<a name="l00082"></a><a class="code" href="class_c_x_w_1_1_c_s_v_manage.html#a8bd8eeeb7e83173a7588479446dee976a5784cc8dbeab8dbaf27fcd548a2482c5">00082</a>                         INT_LARGE_TO_LITTLE             = 6             ,       
<a name="l00083"></a>00083 
<a name="l00084"></a><a class="code" href="class_c_x_w_1_1_c_s_v_manage.html#a8bd8eeeb7e83173a7588479446dee976a3e534fb170aee58ad33158b1f2b8c2dd">00084</a>                         FLOAT_LITTLE_TO_LARGE   = 7             ,       
<a name="l00085"></a><a class="code" href="class_c_x_w_1_1_c_s_v_manage.html#a8bd8eeeb7e83173a7588479446dee976af5da77aee9474a8586076965e18391b3">00085</a>                         FLOAT_LARGE_TO_LITTLE   = 8             ,       
<a name="l00086"></a>00086 
<a name="l00087"></a><a class="code" href="class_c_x_w_1_1_c_s_v_manage.html#a8bd8eeeb7e83173a7588479446dee976a5d1c3cf8f6e2bd44a6fb96e5a6c7717e">00087</a>                         DOUBLE_LITTLE_TO_LARGE  = 9             ,       
<a name="l00088"></a><a class="code" href="class_c_x_w_1_1_c_s_v_manage.html#a8bd8eeeb7e83173a7588479446dee976a2070b303a3cca3d6bd73eb560b30b933">00088</a>                         DOUBLE_LARGE_TO_LITTLE  = 10    ,       
<a name="l00089"></a>00089                 };
<a name="l00090"></a>00090 
<a name="l00091"></a><a class="code" href="class_c_x_w_1_1_c_s_v_manage.html#a9f595345965918c5ded59d644137d585">00091</a>                 <span class="keyword">typedef</span> vector&lt;string&gt; <a class="code" href="class_c_x_w_1_1_c_s_v_manage.html#a9f595345965918c5ded59d644137d585" title="一行数据">Row</a>;             
<a name="l00092"></a>00092 
<a name="l00093"></a><a class="code" href="class_c_x_w_1_1_c_s_v_manage.html#a837f66875528c761b13a2083c8a91ddd">00093</a>                 <span class="keyword">typedef</span> <a class="code" href="class_c_x_w_1_1_c_s_v_manage.html#a9f595345965918c5ded59d644137d585" title="一行数据">Row</a> <a class="code" href="class_c_x_w_1_1_c_s_v_manage.html#a837f66875528c761b13a2083c8a91ddd" title="标题行">Title</a>;                              
<a name="l00094"></a>00094 
<a name="l00095"></a><a class="code" href="class_c_x_w_1_1_c_s_v_manage.html#a9e47816ef2b546a4897689ead9997245">00095</a>                 <span class="keyword">typedef</span> vector&lt;string&gt; <a class="code" href="class_c_x_w_1_1_c_s_v_manage.html#a9e47816ef2b546a4897689ead9997245" title="一列数据">Col</a>;             
<a name="l00096"></a>00096 
<a name="l00097"></a><a class="code" href="class_c_x_w_1_1_c_s_v_manage.html#a66d7af72eefa545f75cef352eded0daf">00097</a>                 <span class="keyword">typedef</span> vector&lt;Row&gt; <a class="code" href="class_c_x_w_1_1_c_s_v_manage.html#a66d7af72eefa545f75cef352eded0daf" title="全部数据">Data</a>;               
<a name="l00098"></a>00098 
<a name="l00099"></a><a class="code" href="class_c_x_w_1_1_c_s_v_manage.html#a585aeef116d210c4c5ef4d0ae8d8a15a">00099</a>                 <span class="keyword">typedef</span> vector&lt;int&gt; <a class="code" href="class_c_x_w_1_1_c_s_v_manage.html#a585aeef116d210c4c5ef4d0ae8d8a15a" title="排序标记">SeqSig</a>;             
<a name="l00100"></a>00100  
<a name="l00101"></a>00101 
<a name="l00102"></a>00102 
<a name="l00104"></a>00104 
<a name="l00105"></a><a class="code" href="struct_c_x_w_1_1_c_s_v_manage_1_1_data_loca.html">00105</a>                 <span class="keyword">struct </span><a class="code" href="struct_c_x_w_1_1_c_s_v_manage_1_1_data_loca.html" title="数据位置">DataLoca</a>                                 
<a name="l00106"></a>00106                 {
<a name="l00107"></a><a class="code" href="struct_c_x_w_1_1_c_s_v_manage_1_1_data_loca.html#a05a8301f4f6b5af07d8c8b81b12b42a0">00107</a>                         <a class="code" href="struct_c_x_w_1_1_c_s_v_manage_1_1_data_loca.html" title="数据位置">DataLoca</a>(<span class="keywordtype">void</span>)
<a name="l00108"></a>00108                         {
<a name="l00109"></a>00109                                 row = 0;        
<a name="l00110"></a>00110                                 col = 0;
<a name="l00111"></a>00111                         }
<a name="l00112"></a><a class="code" href="struct_c_x_w_1_1_c_s_v_manage_1_1_data_loca.html#a8d8637b8ca44d1ae9ed3f697967287cb">00112</a>                         ~<a class="code" href="struct_c_x_w_1_1_c_s_v_manage_1_1_data_loca.html" title="数据位置">DataLoca</a>(<span class="keywordtype">void</span>)
<a name="l00113"></a>00113                         {
<a name="l00114"></a>00114                         }
<a name="l00115"></a><a class="code" href="struct_c_x_w_1_1_c_s_v_manage_1_1_data_loca.html#a1e117e8cf22657fc65a07591bc3ee336">00115</a>                         <span class="keywordtype">int</span> <a class="code" href="struct_c_x_w_1_1_c_s_v_manage_1_1_data_loca.html#a1e117e8cf22657fc65a07591bc3ee336" title="行坐标">row</a>;                
<a name="l00116"></a><a class="code" href="struct_c_x_w_1_1_c_s_v_manage_1_1_data_loca.html#a5af1d3f263d2173c9e436cf5548b762a">00116</a>                         <span class="keywordtype">int</span> <a class="code" href="struct_c_x_w_1_1_c_s_v_manage_1_1_data_loca.html#a5af1d3f263d2173c9e436cf5548b762a" title="列坐标">col</a>;                
<a name="l00117"></a>00117                 };
<a name="l00118"></a>00118 
<a name="l00120"></a>00120 
<a name="l00121"></a><a class="code" href="class_c_x_w_1_1_c_s_v_manage.html#ad9275cf989362f36e845eb51ae3b858c">00121</a>                 <span class="keyword">typedef</span> <a class="code" href="struct_c_x_w_1_1_c_s_v_manage_1_1_data_loca.html" title="数据位置">DataLoca</a> <a class="code" href="class_c_x_w_1_1_c_s_v_manage.html#ad9275cf989362f36e845eb51ae3b858c" title="数据规模">DataSize</a>;
<a name="l00122"></a>00122 
<a name="l00123"></a>00123         <span class="keyword">private</span>:
<a name="l00124"></a>00124 
<a name="l00125"></a>00125                 <span class="keywordtype">string</span> filename_;       
<a name="l00126"></a>00126                 <a class="code" href="class_c_x_w_1_1_c_s_v_manage.html#a837f66875528c761b13a2083c8a91ddd" title="标题行">Title</a> title_;           
<a name="l00127"></a>00127                 <a class="code" href="class_c_x_w_1_1_c_s_v_manage.html#a66d7af72eefa545f75cef352eded0daf" title="全部数据">Data</a> data_;                     
<a name="l00128"></a>00128                 <a class="code" href="struct_c_x_w_1_1_c_s_v_manage_1_1_data_loca.html" title="数据位置">DataSize</a> datasize_;     
<a name="l00129"></a>00129                 <a class="code" href="struct_c_x_w_1_1_c_s_v_manage_1_1_data_loca.html" title="数据位置">DataLoca</a> dataloca_;     
<a name="l00130"></a>00130                 <span class="keywordtype">bool</span> hastitle_;         
<a name="l00131"></a>00131                 
<a name="l00133"></a>00133                 <span class="keywordtype">void</span> clear();
<a name="l00134"></a>00134 
<a name="l00136"></a>00136                 <span class="keywordtype">void</span> setDataSize(
<a name="l00137"></a>00137                         <span class="keywordtype">int</span> rowSize,
<a name="l00138"></a>00138                         <span class="keywordtype">int</span> colSize);
<a name="l00139"></a>00139 
<a name="l00141"></a>00141                 <span class="keywordtype">void</span> setDataSize(
<a name="l00142"></a>00142                         <a class="code" href="struct_c_x_w_1_1_c_s_v_manage_1_1_data_loca.html" title="数据位置">DataSize</a> dataSize
<a name="l00143"></a>00143                         );
<a name="l00144"></a>00144 
<a name="l00145"></a>00145         <span class="keyword">public</span>:
<a name="l00146"></a>00146 
<a name="l00158"></a>00158                 <span class="keyword">static</span> <span class="keywordtype">int</span> isFileLegal(
<a name="l00159"></a>00159                         <span class="keyword">const</span> <span class="keywordtype">char</span>* filename    
<a name="l00160"></a>00160                         );
<a name="l00161"></a>00161 
<a name="l00169"></a>00169                 <span class="keyword">static</span> <span class="keywordtype">string</span> toCSVString(
<a name="l00170"></a>00170                         <span class="keyword">const</span> <span class="keywordtype">char</span>* str                 
<a name="l00171"></a>00171                         );
<a name="l00172"></a>00172 
<a name="l00180"></a>00180                 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;
<a name="l00181"></a>00181                 <span class="keyword">static</span> <span class="keywordtype">void</span> sortCol(
<a name="l00182"></a>00182                         <span class="keyword">const</span> vector&lt;T&gt;&amp; col,   
<a name="l00183"></a>00183                         <a class="code" href="class_c_x_w_1_1_c_s_v_manage.html#a585aeef116d210c4c5ef4d0ae8d8a15a" title="排序标记">SeqSig</a> &amp;seqsig,                 
<a name="l00184"></a>00184                         <span class="keywordtype">bool</span> li2la = <span class="keyword">true</span>               
<a name="l00185"></a>00185                         );
<a name="l00186"></a>00186 
<a name="l00194"></a>00194                 <span class="keyword">static</span> <a class="code" href="class_c_x_w_1_1_c_s_v_manage.html#a9f595345965918c5ded59d644137d585" title="一行数据">Row</a> getRowFromStream(
<a name="l00195"></a>00195                         fstream&amp; inf                    
<a name="l00196"></a>00196                         );
<a name="l00197"></a>00197 
<a name="l00205"></a>00205                 <span class="keyword">static</span> <span class="keywordtype">bool</span> addRowToStream(
<a name="l00206"></a>00206                         fstream&amp; outf,                  
<a name="l00207"></a>00207                         <span class="keyword">const</span> <a class="code" href="class_c_x_w_1_1_c_s_v_manage.html#a9f595345965918c5ded59d644137d585" title="一行数据">Row</a>&amp; row                  
<a name="l00208"></a>00208                         );
<a name="l00209"></a>00209                 
<a name="l00217"></a>00217                 <span class="keywordtype">bool</span> hasTitle() <span class="keyword">const</span>;
<a name="l00218"></a>00218 
<a name="l00226"></a>00226                 <a class="code" href="class_c_x_w_1_1_c_s_v_manage.html#a837f66875528c761b13a2083c8a91ddd" title="标题行">Title</a> getTitle() <span class="keyword">const</span>;
<a name="l00227"></a>00227 
<a name="l00235"></a>00235                 <span class="keywordtype">void</span> delTitle();
<a name="l00236"></a>00236 
<a name="l00237"></a>00237 
<a name="l00245"></a>00245                 <span class="keywordtype">int</span> modifyTitle(
<a name="l00246"></a>00246                         <a class="code" href="class_c_x_w_1_1_c_s_v_manage.html#a837f66875528c761b13a2083c8a91ddd" title="标题行">Title</a> title             
<a name="l00247"></a>00247                         );
<a name="l00248"></a>00248 
<a name="l00256"></a>00256                 <a class="code" href="struct_c_x_w_1_1_c_s_v_manage_1_1_data_loca.html" title="数据位置">DataSize</a> getDataSize() <span class="keyword">const</span>;
<a name="l00257"></a>00257 
<a name="l00265"></a>00265                 <span class="keywordtype">int</span> getRowSize() <span class="keyword">const</span>;
<a name="l00266"></a>00266 
<a name="l00274"></a>00274                 <span class="keywordtype">int</span> getColSize() <span class="keyword">const</span>;
<a name="l00275"></a>00275 
<a name="l00283"></a>00283                 <span class="keywordtype">bool</span> newFile(
<a name="l00284"></a>00284                         <span class="keyword">const</span> <span class="keywordtype">char</span>* filename,           
<a name="l00285"></a>00285                         <span class="keyword">const</span> <a class="code" href="class_c_x_w_1_1_c_s_v_manage.html#a837f66875528c761b13a2083c8a91ddd" title="标题行">Title</a>&amp; title                      
<a name="l00286"></a>00286                         );
<a name="l00287"></a>00287 
<a name="l00295"></a>00295                 <span class="keywordtype">bool</span> loadFile(
<a name="l00296"></a>00296                         <span class="keyword">const</span> <span class="keywordtype">char</span>* filename,   
<a name="l00297"></a>00297                         <span class="keywordtype">bool</span> hastitle = <span class="keyword">false</span>   
<a name="l00298"></a>00298                         );
<a name="l00299"></a>00299 
<a name="l00307"></a>00307                 <span class="keywordtype">bool</span> saveToFile(
<a name="l00308"></a>00308                         <span class="keyword">const</span> <span class="keywordtype">char</span>* filename    
<a name="l00309"></a>00309                         ) <span class="keyword">const</span>;
<a name="l00310"></a>00310 
<a name="l00318"></a>00318                 <span class="keywordtype">bool</span> save() <span class="keyword">const</span>;
<a name="l00319"></a>00319 
<a name="l00327"></a>00327                 <a class="code" href="class_c_x_w_1_1_c_s_v_manage.html#a9f595345965918c5ded59d644137d585" title="一行数据">Row</a> getRow(
<a name="l00328"></a>00328                         <span class="keywordtype">int</span> rowNum      
<a name="l00329"></a>00329                         ) <span class="keyword">const</span>;
<a name="l00330"></a>00330 
<a name="l00338"></a>00338                 <a class="code" href="class_c_x_w_1_1_c_s_v_manage.html#a9f595345965918c5ded59d644137d585" title="一行数据">Row</a> getRow(
<a name="l00339"></a>00339                         <span class="keywordtype">int</span> rowNum,             
<a name="l00340"></a>00340                         <span class="keywordtype">int</span> colStart,   
<a name="l00341"></a>00341                         <span class="keywordtype">int</span> colEnd              
<a name="l00342"></a>00342                         ) <span class="keyword">const</span>;
<a name="l00343"></a>00343 
<a name="l00351"></a>00351                 <a class="code" href="class_c_x_w_1_1_c_s_v_manage.html#a9e47816ef2b546a4897689ead9997245" title="一列数据">Col</a> getCol(
<a name="l00352"></a>00352                         <span class="keywordtype">int</span> colNum              
<a name="l00353"></a>00353                         ) <span class="keyword">const</span>;
<a name="l00354"></a>00354 
<a name="l00362"></a>00362                 <a class="code" href="class_c_x_w_1_1_c_s_v_manage.html#a9e47816ef2b546a4897689ead9997245" title="一列数据">Col</a> getCol(
<a name="l00363"></a>00363                         <span class="keywordtype">int</span> colNum,             
<a name="l00364"></a>00364                         <span class="keywordtype">int</span> rowStart    ,
<a name="l00365"></a>00365                         <span class="keywordtype">int</span> rowEnd              
<a name="l00366"></a>00366                         ) <span class="keyword">const</span>;
<a name="l00367"></a>00367 
<a name="l00375"></a>00375                 <span class="keywordtype">string</span> getXY(
<a name="l00376"></a>00376                         <span class="keywordtype">int</span> rowNum,     
<a name="l00377"></a>00377                         <span class="keywordtype">int</span> colNum      
<a name="l00378"></a>00378                         ) <span class="keyword">const</span>;
<a name="l00379"></a>00379 
<a name="l00387"></a>00387                 <span class="keywordtype">void</span> sort(<span class="keywordtype">int</span> colNum,                                   
<a name="l00388"></a>00388                         <a class="code" href="class_c_x_w_1_1_c_s_v_manage.html#a8bd8eeeb7e83173a7588479446dee976" title="排序模式枚举类型">SORT_MODE</a> sortMode = STRING_A_TO_Z      
<a name="l00389"></a>00389                         );
<a name="l00390"></a>00390 
<a name="l00398"></a>00398                 <span class="keywordtype">void</span> modify(<span class="keywordtype">int</span> rowNum, 
<a name="l00399"></a>00399                         <span class="keywordtype">int</span> colNum,                     
<a name="l00400"></a>00400                         <span class="keyword">const</span> <span class="keywordtype">char</span>* str         
<a name="l00401"></a>00401                         );
<a name="l00402"></a>00402 
<a name="l00413"></a>00413                 <span class="keywordtype">int</span> addRow(
<a name="l00414"></a>00414                         <a class="code" href="class_c_x_w_1_1_c_s_v_manage.html#a9f595345965918c5ded59d644137d585" title="一行数据">Row</a> row,                                        
<a name="l00415"></a>00415                         <span class="keywordtype">int</span> rowNum = 0x7fffffff         
<a name="l00416"></a>00416                         );
<a name="l00417"></a>00417 
<a name="l00428"></a>00428                 <span class="keywordtype">int</span> deleteRow(
<a name="l00429"></a>00429                         <span class="keywordtype">int</span> rowNum      
<a name="l00430"></a>00430                         );
<a name="l00431"></a>00431         };
<a name="l00432"></a>00432 }<span class="comment">// end namespace CXW</span>
<a name="l00433"></a>00433 
<a name="l00434"></a>00434 
<a name="l00435"></a>00435 <span class="preprocessor">#endif</span>
</pre></div></div><!-- contents -->


<hr class="footer"/><address class="footer"><small>
Generated at 2012年七月13日 星期五 16:53:02 for CXW_CSVManage by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.0
</small></address>

</body>
</html>
